home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20010306-20010921
/
000145_fdc@watsun.cc.columbia.edu_Thu May 17 10:24:24 EDT 2001.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
55 lines
Article: 12441 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: fail management
Date: 17 May 2001 14:24:22 GMT
Organization: Columbia University
Lines: 38
Message-ID: <9e0mum$90o$1@newsmaster.cc.columbia.edu>
References: <3b03864d$0$3124$456d72a3@news.skynet.be>
NNTP-Posting-Host: watsun.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 990109462 9240 128.59.39.2 (17 May 2001 14:24:22 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 17 May 2001 14:24:22 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12441
In article <3b03864d$0$3124$456d72a3@news.skynet.be>,
Nathan Rousseau <nathan.rousseau@planetmedica.com> wrote:
: When i call a macro with macro error set to on, the macro exit when error
: occur but the return value of the macro seems always to be success ( even
: if an error occur )
:
What version of Kermit are you using? It does not happen in the current
version of C-Kermit, which is 7.0:
http://www.columbia.edu/kermit/ckermit.html
nor in the corresponding version of Kermit 95. Example:
define xx { echo hello from xx, fail, echo you should not see this }
do xx
status
prints:
hello from xx
FAILURE
The same thing happens when I replace "fail" (a command that always
fails) with "set line /dev/tty01" (where /dev/tty01 is a device I don't
have access to).
: ... it never go in the fail case even if for example, an other session
: kermit is already using the port but the macro SET_MODEM_CARACTERISTIQUE
: has been terminated following the error
:
If you SET MACRO ERROR ON, this makes any failure exit the macro immediately
with a failure status.
SET MACRO ERROR ON is for people who do not want to put IF FAIL or IF SUCCESS
after every statement in the macro. If you remove SET MACRO ERROR ON from
your script, your macros should behave as you expect.
- Frank